package com.ruoyi.ctcx.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 保险合同回款计划对象 tb_insurance_contract_premium_plan
 * 
 * @author ruoyi
 * @date 2024-11-21
 */
public class TbInsuranceContractPremiumPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 所属保险id */
    @Excel(name = "所属保险id")
    private Long insureId;

    /** 所属合同id */
    @Excel(name = "所属合同id")
    private Long contractId;

    /** 批次名称 */
    @Excel(name = "批次名称")
    private String planName;

    /** 计划回款金额 */
    @Excel(name = "计划回款金额")
    private BigDecimal planAmount;

    /** 计划回款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划回款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planDate;

    /** 回款比例 */
    @Excel(name = "回款比例")
    private BigDecimal rate;

    /** 所需资源 */
    @Excel(name = "所需资源")
    private String demand;

    /** 回款责任人 */
    @Excel(name = "回款责任人")
    private String responsiblePerson;

    /** 删除标志 */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setInsureId(Long insureId) 
    {
        this.insureId = insureId;
    }

    public Long getInsureId() 
    {
        return insureId;
    }
    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setPlanName(String planName) 
    {
        this.planName = planName;
    }

    public String getPlanName() 
    {
        return planName;
    }
    public void setPlanAmount(BigDecimal planAmount) 
    {
        this.planAmount = planAmount;
    }

    public BigDecimal getPlanAmount() 
    {
        return planAmount;
    }
    public void setPlanDate(Date planDate) 
    {
        this.planDate = planDate;
    }

    public Date getPlanDate() 
    {
        return planDate;
    }
    public void setRate(BigDecimal rate) 
    {
        this.rate = rate;
    }

    public BigDecimal getRate() 
    {
        return rate;
    }
    public void setDemand(String demand) 
    {
        this.demand = demand;
    }

    public String getDemand() 
    {
        return demand;
    }
    public void setResponsiblePerson(String responsiblePerson) 
    {
        this.responsiblePerson = responsiblePerson;
    }

    public String getResponsiblePerson() 
    {
        return responsiblePerson;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("insureId", getInsureId())
            .append("contractId", getContractId())
            .append("planName", getPlanName())
            .append("planAmount", getPlanAmount())
            .append("planDate", getPlanDate())
            .append("rate", getRate())
            .append("demand", getDemand())
            .append("responsiblePerson", getResponsiblePerson())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
